var myModule = angular.module("myModule",[]);

myModule.controller("MyCtrl",["$scope",function($scope){
    $scope.ctrlFlavor = "百威";
}]);

myModule.directive("drink",function () {
    return{
        restrict:"AE",
        scope:{
            flavor:'@'
        },
        template:"<div>{{flavor}}</div>"/*,
        link:function (scope,element,attrs) {
            scope.flavor=attrs.flavor;
        }*/
    }
})